<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>box-shadow做border</title>
  <style>
    div {
      margin: 50px auto;
      width: 200px;
      height: 100px;
      background: deeppink;
      box-shadow: inset 0 0 0 6px #fff, 0 0 0 10px #333, 0 0 0 15px #aaa, 0 2px 5px 15px #666;
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>